package licode.unisop.platform.client.info;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * 定义平台对外的结构信息
 *
 * @author WR
 */
@Data
public class PlPermitInfo {
    private String id;
    /**
     * 租户标识
     */
    private String tenantId;
    private String platformId;
    private String code;
    private String name;
    private String permitGroup;
    private String comment;
    private Integer state;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public PlPermitInfo() {
    }

    @Override
    public boolean equals(final Object obj) {
        if (null == obj) {
            return false;
        }
        return this.code.equals(((PlPermitInfo) obj).code);
    }
}
